package com.baselib.android.cach.sql;

/**
 * Created by User on 2018/9/4.
 */

public class ImDbLog {

    static String TAG = "IMLOG";

    public static void e(String msg) {
//        if (isDebug)
        //    Log.e(TAG, buildMessage(msg));
    }

    public static void e(String msg, Throwable thr) {

        //if (isDebug)
        // Log.e(TAG, buildMessage(msg), thr);
    }

    protected static String buildMessage(String msg) {

        StackTraceElement caller = new Throwable().fillInStackTrace()
                .getStackTrace()[2];
        String mess = new StringBuilder().append(caller.getClassName())
                .append(".").append(caller.getMethodName()).append("(): ")
                .append(msg).toString();
        return caller.toString() + msg;

    }


}
